package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 地漏实验 对应表 BA_FLOOR_DRAIN
public class BA_FloorDrain extends BABaseEntity {
    @Id
    @GenericGenerator(name="floorDrainGenerator", strategy="uuid")
    @GeneratedValue(generator="floorDrainGenerator")
    private String BA_FloorDrain_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Temporal(TemporalType.DATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Basic
    @Column(name = "EXPERIMENTALDATE")
    private Date experimentalDate;

    @Basic
    @Column(name = "WELLDEPTH")
    private Double wellDepth;

    @Basic
    @Column(name = "VERTICALDEPTH")
    private Double verticalDepth;

    @Basic
    @Column(name = "MUDDENSITY")
    private Double mudDensity;

    @Basic
    @Column(name = "PRESSURESITUATION", length = 50)
    private String pressureSituation;

    @Basic
    @Column(name = "FIT")
    private Double fit;

    @Basic
    @Column(name = "UNDERPRESSUREED")
    private Double underPressureED;

    @Basic
    @Column(name = "FRACTURESTATUS", length = 50)
    private String fractureStatus;

    @Basic
    @Column(name = "FRACTUREPRESSURE")
    private Double fracturePressure;

    @Basic
    @Column(name = "FRACTUREPRESSUREED")
    private Double fracturePressureED;

    @Basic
    @Column(name = "LOSSSITUATION", length = 50)
    private String lossSituation;

    @Basic
    @Column(name = "LOSSPRESSURE")
    private Double lossPressure;

    @Basic
    @Column(name = "LOSSPRESSUREED")
    private Double lossPressureED;

    @Basic
    @Column(name = "REOPENINGPRESSURE")
    private Double reopeningPressure;

    @Basic
    @Column(name = "STOPPUMPPRESSURE")
    private Double stopPumpPressure;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
